import Vue from 'vue'
import Vuex from 'vuex'

import userModule from './modules/user'

Vue.use(Vuex)

const store = new Vuex.Store({
  // 分模块 - 注册子模块
  modules: {
    user: userModule
  }
})

export default store
